﻿using System;
using WF_AppFuel.Validation.Base;
using WF_AppFuel.Validation.Engines;

namespace WF_AppFuel.Validation.Attributes
{
    /// <summary>
    /// Attribute used for specifying that a property
    /// must have a valid URL value.
    /// </summary>
    /// <author>Dennis Q. Pitallano</author>
    public sealed class IsURL : BaseValidationAttribute
    {
        public IsURL()
        {
            this.SetValidationMessage("Must Be A Valid URL");
        }

        public override Type ValidationEngineType
        {
            get { return typeof(IsURLValidationEngine); }
        }
    }
}
